package com.blb.community.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community.entity.ZyCommunity;
import com.blb.community.entity.vo.CommunityAreaVO;
import com.blb.community.entity.vo.CommunityVO;

/**
 * <p>
 * 小区  服务类
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
public interface IZyCommunityService extends IService<ZyCommunity> {
    /**
     * 分页查询小区
     * @param
     * @param page
     * @return
     */
    IPage<CommunityVO> getCommunity(CommunityVO communityVO, IPage<CommunityVO> page);

    /**
     * 小区级联地址查询
     * @param communityAreaVO
     * @param page
     * @return
     */
    IPage<CommunityAreaVO> getCommunityArea(CommunityAreaVO communityAreaVO, IPage<CommunityAreaVO> page);

    /**
     * 小气添加
     * @param communityAreaVO
     */
    void addCommunity(CommunityAreaVO communityAreaVO);

    /**
     * 小区修改
     * @param communityAreaVO
     */
    void updateCommunity(CommunityAreaVO communityAreaVO);

    /**
     * 根据小区id修改部门
     * @param communityId
     * @param deptId
     */
    void updateDeptId(Long communityId,Long deptId);
}
